package com.ischoolbar.programmer.service.home.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ischoolbar.programmer.dao.admin.UserDao;
import com.ischoolbar.programmer.dao.home.AccountDao;
import com.ischoolbar.programmer.entity.admin.User;
import com.ischoolbar.programmer.entity.home.Account;
import com.ischoolbar.programmer.service.admin.UserService;
import com.ischoolbar.programmer.service.home.AccountService;
/**
 * user�û�serviceimpl
 * @author llq
 *
 */
@Service
public class AccountServiceImpl implements AccountService {

	@Autowired
	private AccountDao accountDao;
	
	@Override
	public Account checkPhone(String phone) {
		// TODO Auto-generated method stub
		Account checkPhone = accountDao.checkPhone(phone);
		return checkPhone;
	}

	@Override
	public Account checkUsernameT(String username) {
		// TODO Auto-generated method stub
		Account checkUsername = accountDao.checkUsernameT(username);
		return checkUsername;
	}

	@Override
	public int add(Account account) {
		// TODO Auto-generated method stub
		return accountDao.add(account);
	}

	@Override
	public int edit(Account account) {
		// TODO Auto-generated method stub
		return accountDao.edit(account);
	}

	@Override
	public int deleteAccount(String ids) {
		// TODO Auto-generated method stub
		return accountDao.deleteAccount(ids);
	}

	
}
